var lib=[
{name:"走遍万水千山",author:"三毛",price:32}
{name:"白夜行",author:"东野圭吾",price:30}
{name:"梦里花落知多少",author:"三毛",price:40}
{name:"亲爱的宝贝",author:"三毛",price:23}
{name:"钢铁是怎样练成的",author:"保尔",price:43}
{name:"背影",author:"朱自清",price:39}
];

router.get('/editbookView',function(req,res,next){//添加的页面
	res.render('book_edit',{});
	});


router.post('/addbook',function(req,res,next){//添加到总的表格中
	users.push({
		name:req.body.bname,
		author:req.body.bauthor,
		price:req.body.bprice
		});
	res.redirect("/hehe");//页面跳转
	});

module.exports = router;